import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Sourcehtml',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/Sourcehtml.vue'),
      children:[
                  {
                    path: '/',
                    name: 'SourceView',
                    component: () => import('../views/SourceView.vue'),
                  },
                  {
                    path: '/Culture',
                    name: 'CultureView',
                    component: () => import('../views/CultureView.vue'),
                        children:[{

                          path: '/Culturehtml',
                          name: 'CultureViewHtml',
                          component: () => import('../views/CultureViewHtml.vue'),
                        },
                        {

                          path: '/Slaughtering',
                          name: 'Slaughtering',
                          component: () => import('../views/Slaughtering.vue'),
                        },
                        {

                          path: '/Deepprocessing',
                          name: 'Deepprocessing',
                          component: () => import('../views/Deepprocessing.vue'),
                        }
                      
                      
                      ]
                  },
                  {
                    path: '/MEW',
                    name: 'MEW',
                    component: () => import('../views/MEW.vue'),
                  },
              ]
    }
   
  ]
})

export default router
